package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 备用金业务对象 oa_finance_imprest
 *
 * @author ruoyi
 * @date 2023-05-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaFinanceImprestBo extends BaseEntity {

    /**
     * 主键ID
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 申请事由
     */
    @NotBlank(message = "申请事由不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applyCourse;

    /**
     * 备注
     */
    private String remarks;

    private String costType;

    /**
     * 费用金额
     */
    @NotNull(message = "费用金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal feeAmount;

    /**
     * oss集合
     */
    @NotBlank(message = "费用凭证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String attachment;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;

    /**
     * 创建
     */
    private String createUser;
}
